<?php
namespace app\learn\controller;

use think\App;
use think\facade\View;

class BaseController extends \app\BaseController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        View::assign('root_path', request()->domain());
    }
}
